var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema =  mongoose.Schema;

var ObjectId = Schema.ObjectId;

var CommentSchema = new Schema({
	name:String,
	content:String,
	comment:String,
	cateid:ObjectId,
	count:String,
	date: { type: Date, default: Date.now }
})

CommentSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Comment',CommentSchema,'comment');

